public class AirPlane extends FlyingObject {
    private int ySpeed;

    public AirPlane(){
      image = ShootGame.airplane0;
      width = image.getWidth(null);
      height = image.getHeight(null);
      x = (int)(Math.random()*ShootGame.width);
      y = 50;
      ySpeed = 1;
      life = 1;
    }


    @Override
    public void move() {
        y += ySpeed;
    }

    public int getySpeed() {
        return ySpeed;
    }

    public void setySpeed(int ySpeed) {
        this.ySpeed = ySpeed;
    }
}
